Watermark
Definition class for a watermark.
Types
Link copied to clipboard
data class Drawable( @DrawableOrDrawableRes val drawable: Any, val position: WatermarkPosition = WatermarkPosition.MIDDLE_CENTER, val width: Float = 0.0f, val height: Float = 0.0f, val dx: Float = 0.0f, val dy: Float = 0.0f, val rotation: Float = 0.0f, @FloatRange(from = 0.0, to = 1.0 ) val opacity: Float = 1.0f, val measurementDimension: Dimension = Dimension.PX) : Watermark
Content copied to clipboard
Definition for a drawable watermark (shape, image, etc.)
Link copied to clipboard
data class Text( @StringOrStringRes val text: Any, val textSize: Float = 12.0f, @ColorInt val textColor: Int = Color.BLACK, val position: WatermarkPosition = WatermarkPosition.MIDDLE_CENTER, val dx: Float = 0.0f, val dy: Float = 0.0f, val rotation: Float = 0.0f, @FloatRange(from = 0.0, to = 1.0 ) val opacity: Float = 1.0f, val typeface: Typeface? = null, val shadow: WatermarkShadow? = null, val measurementDimension: Dimension = Dimension.PX) : Watermark
Content copied to clipboard
Definition for a text watermark.